package s01;

public class StudentTest {

	public static void main(String[] args) {
		Student s1 = new Student();//调用无参构造方法
		s1.setName("张三");
		s1.setAge(18);
		s1.showMessage();
		Student s2 = new Student("李四", 2);//在创建对象来初始化数据
		s2.showMessage();
		s2.setName("李四光");
		s2.setAge(20);
		s2.showMessage();
		Student s3 = new Student(21, "wangwu");
		s3.showMessage();
	}

}
